package com.teamin.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 任务的实体类
 */
@Validated
@ApiModel(value = "任务的提醒")
public class TaskRemindEntity implements Serializable{

    @ApiModelProperty(value = "任务ID")
    Long taskId ;

    @ApiModelProperty(value = "任务的提前的类型(day,hour,minute)")
    @Pattern(regexp= "(day)|(hour)|(minute)",message = "任务提醒类型不对")
    private String remindMoveUpType;

    @ApiModelProperty(value = "任务的提前的值")
    private Long remindMoveUp;

    public void setTaskId(Long taskId) {
        this.taskId = taskId;
    }

    public Long getTaskId() {
        return taskId;
    }
    public String getRemindMoveUpType() {
        return remindMoveUpType;
    }

    public Long getRemindMoveUp() {
        return remindMoveUp;
    }

    public void setRemindMoveUpType(String remindMoveUpType) {
        this.remindMoveUpType = remindMoveUpType;
    }

    public void setRemindMoveUp(Long remindMoveUp) {
        this.remindMoveUp = remindMoveUp;
    }

    @Override
    public String toString() {
        return "TaskRemindEntity{" +
                "remindMoveUpType='" + remindMoveUpType + '\'' +
                ", remindMoveUp=" + remindMoveUp +
                '}';
    }
}